#include<bits/stdc++.h>
#define INF 0x3f3f3f3f
using namespace std;
typedef long long LL;
typedef double db;
inline int read()
{
	int x=0,f=1;
	char ch=getchar();
	while(ch<'0'||ch>'9') { if(ch=='-')f=-1; ch=getchar(); }
	while(ch>='0'&&ch<='9') { x=(x<<1)+(x<<3)+ch-'0'; ch=getchar(); }
	return x*f;
}
const int MAXN=40010;
int n,x[210],y[210],tot,ans;
db l[MAXN];
int main()
{
#ifndef ONLINE_JUDGE
	freopen("in.in","r",stdin);
	freopen("out.out","w",stdout);
#endif
	n=read();
	for(int i=1;i<=n;++i)
	{
		x[i]=read(),y[i]=read();
		for(int j=1;j<i;++j)
		{
			db xx=x[i]-x[j],yy=y[i]-y[j];
			if(x[i]!=x[j])l[++tot]=yy/xx;
			else l[++tot]=INF;
		}
	}
	sort(l+1,l+1+tot);
	ans=tot;
	for(int i=1;i<=tot;++i)
		if(abs(l[i]-l[i-1])<1e-9)--ans;
	printf("%d\n",ans);
}
